<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.div1 {
				line-height: 24px;
				height: 24px;
			}
			
			.div1::before {
				content: "";
				display: inline-block;
				width: 24px;
				height: 24px;
				background-color: #f00;
				border-radius: 50%;
			}
			
			.div1::after {
				content: "";
				display: inline-block;
				width: 24px;
				height: 24px;
				background-color: #f00;
			}
		</style>
	</head>
	<body>
		<div class="div1">我是div</div>
	</body>
</html>